package com.joinway.framework.site.beans.view;

import java.util.List;
import java.util.Map;

import org.jsondoc.core.annotation.ApiObject;
import org.jsondoc.core.annotation.ApiObjectField;

import com.joinway.framework.bean.view.View;

@ApiObject(name="PageView",description="分页列表")
public class PageView extends View {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@ApiObjectField(description="总页数") 
	private int totalPage;
	
	@ApiObjectField(description="当前页数")
	private int currentPage;
	
	@ApiObjectField(description="当前页数据")
	private List<Map<String, ?>> rows;

	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public List<Map<String, ?>> getRows() {
		return rows;
	}

	public void setRows(List<Map<String, ?>> rows) {
		this.rows = rows;
	}
}

